package com.example.simplemodule;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.database.DataSetObserver;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.SpinnerAdapter;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {
	private Button btnMainCheckBox;
	private Button btnMainRadioGroup;
	private Button btnMainSeekBar;
	private Spinner spinner;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		this.btnMainCheckBox=findViewById(R.id.btn_main_checkbox);
		this.btnMainCheckBox.setOnClickListener(this);
		this.btnMainRadioGroup=findViewById(R.id.btn_main_radio_group);
		this.btnMainRadioGroup.setOnClickListener(this);
		this.btnMainSeekBar=findViewById(R.id.btn_main_seekbar);
		this.btnMainSeekBar.setOnClickListener(this);
		this.spinner=findViewById(R.id.spinner_main);

	}

	@Override
	public void onClick(View v) {
		switch (v.getId()){
			case R.id.btn_main_checkbox:
				startActivity(new Intent(this, CheckBoxTestActivity.class));
				break;
			case R.id.btn_main_radio_group:
				startActivity(new Intent(this, RadioGroupTestActivity.class));
				break;
			case R.id.btn_main_seekbar:
				startActivity(new Intent(this,SeekBarTestActivity.class));
				break;
		}
	}
}